package com.randi.framework.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @author ziye
 */
@Data
@ApiModel(value = "ProfileUpdateDto", description = "个人信息更新DTO")
public class ProfileUpdateDTO {

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phoneNumber;

    @ApiModelProperty(value = "用户性别")
    private String sex;

}
